﻿namespace ComicsDownloader.Engine
{
    public class Cartoon
    {
        public Cartoon(WebSite webSite, string name, string cartoonUrl, string pictureUrl, string extension)
        {
            _cartoonUrl = cartoonUrl;
            WebSite = webSite;
            Name = name;
            PictureUrl = pictureUrl;
            Extension = extension;
        }

        public WebSite WebSite { get; private set; }

        public string Name { get; private set; }

        private readonly string _cartoonUrl;

        public string PictureUrl { get; private set; }

        public string Extension { get; private set; }

        public string GetCartoonUrl(int pageNo)
        {
            return string.Format(_cartoonUrl, pageNo);
        }
    }
}
